package ma.co.ba.BusinessApplications.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ma.co.ba.BusinessApplications.model.Work;

@Entity
@Table(name = "NATURE_MISSION")
public class NatueMission {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
	@Column(name = "IDENTIFIANT_NATURE_MISSION", nullable = false, length = 100)
	private String identifiantNatureMission;
	@Column(name = "INTITULENATUREMISSION", length = 250)
	private String intituleNatureMission;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private TypeMission typeMission;
	
	 


	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}








	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}








	/**
	 * @return the identifiantNatureMission
	 */
	public String getIdentifiantNatureMission() {
		return identifiantNatureMission;
	}




	/**
	 * @param identifiantNatureMission the identifiantNatureMission to set
	 */
	public void setIdentifiantNatureMission(String identifiantNatureMission) {
		this.identifiantNatureMission = identifiantNatureMission;
	}








	/**
	 * @return the typeMission
	 */
	public TypeMission getTypeMission() {
		return typeMission;
	}








	/**
	 * @param typeMission the typeMission to set
	 */
	public void setTypeMission(TypeMission typeMission) {
		this.typeMission = typeMission;
	}








	/**
	 * @return the intituleNatureMission
	 */
	public String getIntituleNatureMission() {
		return intituleNatureMission;
	}








	/**
	 * @param intituleNatureMission the intituleNatureMission to set
	 */
	public void setIntituleNatureMission(String intituleNatureMission) {
		this.intituleNatureMission = intituleNatureMission;
	}








	public NatueMission() {

	}

	
}
